package misc;

import com.sun.net.httpserver.HttpExchange;

/**
 * @author Filip Lindqvist <buggfille@gmail.com>
 * @created 10:24:06 AM - Nov 16, 2011
 */
public class HTMLStringStream extends HttpStream {

    public HTMLStringStream(HttpExchange t) {
        this(t, HTTP.OK);
    }

    public HTMLStringStream(HttpExchange t, int code) {
        super(t, code);
        super.exchange.getResponseHeaders().add("Content-Type",
                "text/html; charset=UTF-8");
    }
}
